AsanaPlugins\WooCommerce\ProductBundles\ProductBundleHooks D

Total Complexity 415
Dependencies 4
Dependents 1
Total lines 1,445
Lines of code 1,126
Logical lines of code 668
Comment lines 73
Methods 43
Properties 0

Methods 43

Method Rating Maintainability Complexity Lines of code
add_to_cart_validation()
D
28
43 114
before_calculate_totals()
C
39 27 57
ajax_add_order_item_meta()
C
35 25 80
update_cart_validation_bundle()
C
39 25 56
add_bundle_items_to_cart()
B
39 21 58
cart_item_price_bundle()
B
40 21 56
get_price_html()
B
40 19 58
calculate_bundle_price()
B
46 20 33
product_bundle_position_hooks()
B
43 19 48
cart_item_subtotal_bundle()
B
44 17 38
add_bundle_item_to_cart()
A
43 14 43
formatted_line_subtotal()
A
48 14 36
cart_shipping_packages()
A
51 11 27
cart_item_subtotal()
A
50 11 26
cart_loaded_from_session()
A
53 9 22
cart_item_price()
A
50 8 28
cart_contents_weight()
A
53 8 23
coupon_is_valid_for_product()
A
55 8 20
add_items_field()
A
55 8 19
add_cart_item_data()
A
55 8 18
checkout_create_order_line_item()
S
56 7 19
get_item_count()
S
58 7 14
cart_contents_count()
S
58 7 14
remove_bundle_from_cart()
S
60 6 12
init()
S
43 3 44
cart_item_remove_link()
S
61 5 13
get_cart_item_from_session()
S
55 4 21
update_cart_validation()
S
66 4 9
before_mini_cart_contents()
S
67 4 8
cart_item_name()
S
60 3 12
cart_item_class()
S
67 3 8
cart_item_removed()
S
67 3 8
cart_item_restored()
S
67 3 8
loop_add_to_cart_link()
S
65 3 9
order_again_cart_item_data()
S
64 3 10
display_product_bunlde()
S
69 3 7
hidden_order_itemmeta()
S
59 1 16
before_order_item_meta()
S
67 2 7
cart_item_quantity()
S
71 2 6
add_to_cart()
S
66 2 8
bundle_product_class()
S
71 2 6
add_to_cart_template()
S
81 1 3
product_type_selector()
S
75 1 4